package dataStructures;

public class Ratings {
	
	private int ratingsCounter;
	private int ratingsSum;
	
	public Ratings(int ratingsCounter, int ratingsSum){
		this.ratingsCounter = ratingsCounter;
		this.ratingsSum = ratingsSum;
	}
	
	public int getRatingsCounter(){
		return ratingsCounter;
	}
	
	public int getRatingsSum(){
		return ratingsSum;
	}
	
	public String toString(){
		return "[" + ratingsCounter + "," + ratingsSum + "]";  
	}
	
	public void accumulateCbElements(Ratings r){
		ratingsCounter += r.ratingsCounter;
		ratingsSum += r.ratingsSum;
	}

}
